<include file="Admin:header" />
<table class="search_table" width="100%">
	<tr>
		<td class="search">
			<form action="{:U($module_name.'/all_order')}" method="get">
			<input type="hidden" name="g" value="{$Think.GROUP_NAME}" />
			<input type="hidden" name="m" value="{$Think.MODULE_NAME}" />
			<input type="hidden" name="a" value="{$Think.ACTION_NAME}" />	

			<input id="title" type="text" class="input-text" name="keyword" value="{$Think.get.keyword}" />
			<select name="searchtype">
			<option value="sn" <eq  name="searchtype" value='sn'>selected="selected"</eq>>{:L('order_sn')}</option>
			<option value="realname" <eq name="searchtype" value='realname'>selected="selected"</eq>>{:L('realname')}</option>
			<option value="username" <eq name="searchtype" value="username">selected="selected"</eq>>{:L('username')}</option>
			<option value="userid" <eq name="searchtype" value="userid">selected="selected"</eq>>{:L('userid')}</option>
			<option value="id" <eq name="searchtype" value='id'>selected="selected"</eq>>ID</option>
			</select>
 
 
			<select id="status" name="status">
			<option value="">{:L('order_status')}</option>			 
			<option value="0" <if condition="isset($status) && $status ==0">selected="selected"</if>>{%status_0}</option>
			<option value="1" <if condition="isset($status) && $status ==1">selected="selected"</if>>{%status_1}</option>
            <option value="2" <if condition="isset($status) && $status ==2">selected="selected"</if>>处理状态2</option>
            <option value="3" <if condition="isset($status) && $status ==3">selected="selected"</if>>处理状态3</option>
            <option value="4" <if condition="isset($status) && $status ==4">selected="selected"</if>>处理状态4</option>
            <option value="5" <if condition="isset($status) && $status ==5">selected="selected"</if>>处理状态5</option>
			</select>
			 
			
			<select id="order" name="order">
			<option value="updatetime" <if condition="$order =='updatetime'">selected="selected"</if>>更新时间</option>
			<option value="id" <if condition="$order =='id'">selected="selected"</if>>ID</option>
			<option value="price" <if condition="$order =='price'">selected="selected"</if>>price</option>
			</select>
			
			<select name="sort">
				<option value="asc" <if condition="$sort =='asc'">selected="selected"</if>>{:L('order_by_asc')}</option>
				<option value="desc" <if condition="$sort =='desc'">selected="selected"</if>>{:L('order_by_desc')}</option>
			</select>

			<select name="listRows">
				<option value="15" <if condition="$listRows ==5">selected="selected"</if>>15{:L('listRows')}</option>
				<option value="20" <if condition="$listRows ==20">selected="selected"</if>>20{:L('listRows')}</option>
				<option value="50" <if condition="$listRows ==50">selected="selected"</if>>50{:L('listRows')}</option>
				<option value="100" <if condition="$listRows ==100">selected="selected"</if>>100{:L('listRows')}</option>
			</select>
			-----
            <input id="sy" type="text" class="input-text" size="4" name="sy" value="{$Think.get.sy}" />/
            <input id="sm" type="text" class="input-text" name="sm" size="2" value="{$Think.get.sm}" />/
            <input id="sd" type="text" class="input-text" name="sd" size="2" value="{$Think.get.sd}" />--
            <input id="ey" type="text" class="input-text" name="ey" size="4" value="{$Think.get.ey}" />/
            <input id="em" type="text" class="input-text" name="em" size="2" value="{$Think.get.em}" />/
            <input id="ed" type="text" class="input-text" name="ed" size="2" value="{$Think.get.ed}" />
            
            
			<input type="hidden" id="menuid" name="menuid" value="{$_GET['menuid']}"/>
			<input type="submit" value="{:L('chaxun')}"  class="button" />
			<input type="reset" value="{:L('reset')}" class="button"  />
			</form>
		</td>
		
	</tr>
</table>
<div class="table-list">
<table width="758" border="1" cellspacing="0" cellpadding="0" align="left">
  <tr align="center">
    <th width="150">商品图片</th>
    <th width="150">商品图片</th>
    <th width="150">商品图片</th>
    <th width="150">商品图片</th>
    <th width="150">商品图片</th>
  </tr>
  <if condition="empty($list)">
     <tr align="center">
     <td colspan="5" style="padding:10px;border:0;color:#FB0000;" align="center">您的购物车为空!</td>
     </tr>
  <else/>
  <volist name="list" id="vo">
  {if:$i==1||$i%5==1}
  <tr align="left">
  {if:/}
    <td height="115" style="border-left:none;line-height:100%;" align="center">
    <img src="{$vo['thumb']}" width="150" height="115"/><br />
    <a href="{$vo['url']}" target="_blank">{$vo['title']}</a>-{$vo['countprice']|number_format=###,2}<br />
    {$vo['num']}
    </td>
    {if:$i>5&&$i%5==1}
 	</tr>
    {if:/}
 </volist>
 </if>
</table>
</div>    

<div id="pages" class="page">{$page}</div>
<script>
$("#catid").attr("value",'{$catid}');
function confirm_deleteall(){
	art.dialog.confirm("{:L('real_delete')}", function(){ $('#myform').submit();});
}
</script>